from magiconnx import OnnxGraph
graph = OnnxGraph('model1.onnx')
print(graph.inputs)
print(graph.outputs)

graph.keep_default_domain()
graph.save('model2.onnx')

# atc --framework=5 --model=model2.onnx --output=model --input_format=ND --input_shape="input:292,293,13" --log=debug --soc_version=Ascend310